/* Center image via hashtag at end of img src */
img[src*='#center'] {
    display: block;
    margin: auto;
}
/* Add image caption */
.image-caption {
  text-align: center;
  font-size: .8rem;
  color: light-grey;
}

.panel {
  padding: 10px 15px;
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  margin-top: 5px;
  text-align: center;
}

.tags {
  padding-top: 1px;
  margin-top: 1px;
  font-size: 1em;
  font-style: italic;
}


/* to make tags look a bit nicer */
h1 {
  margin-top: 0px;
  margin-bottom: 0px;
  line-height: normal;
}

/*
 * Author
 */

.author {
  margin-bottom: 1rem;
  padding: 1rem;
  color: #717171;
  background-color: #f0f0f0;
}

.author:after {
  content: "";
  display: table;
  clear: both;
}

.author .gravatar {
        float: left;
}

.author .detail {
        margin-left: 90px;
}

.author .name {
        font-weight: bold;
}

.author .bio {
        line-height: 1rem;
        font-size: 90%;
}

.pic {
        float: left;
        width: 120px;
        padding-right: 0;
        padding-top: 10px;
}

.pic img {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    width: 100px;
    height: 100px;

}

.bio {
  margin-left: 125px;
        padding-left: 0;
        text-align: justify;
}


/*
 * TOC
 */

#toc_toggle {
  float: right;
  font-size: 90%;
  font-style: italic;
  cursor: pointer;
  margin-right: 5px;
}

#markdown-toc {
  float: left !important;
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  margin-right: 5px;
}

.clickable-header {
  cursor: pointer;
}

.clickable-header:hover {
  text-decoration: underline;
}

.top-level-header {
  display: inline;
}

.back-to-top {
  margin: 12px 0;
  cursor: pointer;
  float: right;
  color: #aaa;
}

.admonition-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
  border: 1px solid;
  border-radius: 4px;
  padding: 15px;
}

.admonition-info:before {
    content: url(../images/icons/information.png);
}

.admonition-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
  border: 1px solid;
  border-radius: 4px;
  padding: 15px;
}

.admonition-warning:before {
    content: url(../images/icons/exclamation.png);
}

.wrapper-masthead {
  margin-bottom: 0px;
}

/* STRUCTURE */

.container {
        padding: 5px;
        max-width: 960px;
        margin: 20px auto;
}
.container-post {
        max-width: 740px;
}
header {
        height: 100px;
        padding: 0 15px;
}
#content {
        width: 320px;
        float: left;
        padding: 5px 15px;
}

#middle {
        width: 320px; /* Account for margins + border values */
        float: left;
        padding: 5px 15px;
        margin: 0px 5px 5px 5px;
}

#sidebar {
        width: 300px;
        padding: 5px 15px;
        float: left;
}
footer {
        clear: both;
        padding: 0 15px;
}

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* for 980px or less */
@media screen and (max-width: 980px) {
        
        .container {
                width: 94%;
        }
        #content {
                width: 41%;
                padding: 1% 4%;
        }
        #middle {
                width: 41%;
                padding: 1% 4%;
                margin: 0px 0px 5px 5px;
                float: right;
        }
        
        #sidebar {
                clear: both;
                padding: 1% 4%;
                width: auto;
                float: none;
        }

        header, footer {
                padding: 1% 4%;
        }
}

/* for 700px or less */
@media screen and (max-width: 600px) {

        #content {
                width: auto;
                float: none;
        }
        
        #middle {
                width: auto;
                float: none;
                margin-left: 0px;
        }
        
        #sidebar {
                width: auto;
                float: none;
        }

}

/* for 480px or less */
@media screen and (max-width: 480px) {

        header {
                height: auto;
        }
        h1 {
                font-size: 2em;
        }
        #sidebar {
                display: none;
        }

}


.posts {
        background: #f8f8f8;
        padding: 5px 15px;
        margin-bottom: 3px;
}
#sidebar {
        background: #d9edf7;
        border-color: #d9edf7;
}
header, #content, #middle, #sidebar {
        margin-bottom: 5px;
}

#content, #middle, #sidebar {
        border: solid 1px #ccc;
}

.side-info {
    border-radius: 4px;
    background-color: #fff;
    padding: 4px;
}
